import {  ref } from 'vue'
type NavBaseType = {
  key: string, label?: string, title: string, routeName?: string,
}
export const navList = ref<(NavBaseType & {children?: NavBaseType[]})[]>([
  {
    key: 'index',
    label: '首页',
    title: '首页',
    routeName: '/index'
  },
  {
    key: 'column',
    label: '分类',
    title: '分类',
    routeName: '/column'
  },
  {
    key: 'socket',
    label: '留言',
    title: '留言',
    routeName: '/socket'
  },
  {
    key: 'pic',
    label: '图片',
    title: '图片',
    routeName: '/pic'
  },
  {
    key: 'sub',
    label: '案例',
    title: '案例',
    children: [
      {
        key: 'baidu',
        title: '百度',
      },
      {
        key: 'ant design',
        title: 'ant design',
      }
    ],

  },
  {
    key: 'userInfo',
    label: '个人信息',
    title: '个人信息',
    routeName: '/userInfo'
  }
])